import axios from 'axios';

export const delLanmu = params => { return axios.get(`http://localhost/api/vue-admin/delLanmu.php`, { params: params }); };

export const addLanmu = params => { return axios.get(`http://localhost/api/vue-admin/addLanmu.php`, { params: params }); };

export const editLanmu = params => { return axios.get(`http://localhost/api/vue-admin/editLanmu.php`, { params: params }); };

export const getData = params => { return axios.get(`http://localhost/api/vue-admin/lanmu.php`, { params: params }); };

export const getPage = params => { return axios.get(`http://localhost/api/vue-admin/page.php`, { params: params }); };

export const getAbout = params => { return axios.get(`http://localhost/api/vue-admin/about.php`, { params: params }); };

export const getModule = params => { return axios.get(`http://localhost/api/vue-admin/module.php`, { params: params }); };

export const delModule = params => { return axios.get(`http://localhost/api/vue-admin/delModule.php`, { params: params }); };

export const editModule = params => { return axios.get(`http://localhost/api/vue-admin/editModule.php`, { params: params }); };

export const uploadImg = params => { return axios.get(`http://localhost/api/vue-admin/upload.php`, { params: params }); };

export const editAbout = params => { return axios.get(`http://localhost/api/vue-admin/editAbout.php`, { params: params }); };